/**
 * 医疗领域
 */
const { v4: uuidv4 } = require('uuid');

module.exports = {

  up: async queryInterface => {
    const names = [
      '光学影像', '体外诊断', '康复治疗', '智慧健康', '外科医学',
      '医学检验', '其他'
    ];
    const medicalFieldList = names.map((item, index) => ({
      id: index + 1,
      uuid: uuidv4(),
      name: item,
      createdAt: new Date(),
      updatedAt: new Date(),
    }));

    await queryInterface.bulkInsert('medical_field', medicalFieldList, {});
  },

  down: async queryInterface => {

    await queryInterface.bulkDelete('medical_field', null, {});

  }
};
